package com.woniuxy.main.service.imp;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.woniuxy.main.mapper.Vi_user_complainMapper;
import com.woniuxy.main.pojo.Vi_user_complain;
import com.woniuxy.main.service.Vi_user_complainService;

import lombok.Data;

@Service
@Data
public class Vi_user_complainServiceImp implements Vi_user_complainService{
	
	@Resource
	private Vi_user_complainMapper vi_user_complainMapper;

	@Override
	public List<Vi_user_complain> showStudentComplain(int page) {
		return vi_user_complainMapper.showStudentComplain(page);
	}

	@Override
	public int totalStudentComplainPage() {
		return vi_user_complainMapper.totalStudentComplainPage();
	}

	@Override
	public List<Vi_user_complain> showCoachComplain(int page) {
		return vi_user_complainMapper.showCoachComplain(page);
	}

	@Override
	public int totalCoachComplainPage() {
		return vi_user_complainMapper.totalCoachComplainPage();
	}

	@Override
	public List<Vi_user_complain> showGymComplain(int page) {
		return vi_user_complainMapper.showGymComplain(page);
	}

	@Override
	public int totalGymComplainPage() {
		return vi_user_complainMapper.totalGymComplainPage();
	}

	@Override
	public String isComplainExist(int uid) {
		return vi_user_complainMapper.isComplainExist(uid);
	}

	@Override
	public int addComplain(Map<String, Object> request) {
		return vi_user_complainMapper.addComplain(request);
	}

}
